package me.zhengjie.service;


import me.zhengjie.exception.QueryErrorException;
import me.zhengjie.result.PrestoQueryResult;

import java.util.Optional;

public interface PrestoService {
	//查询系统表信息
	PrestoQueryResult doQuery(String dataSource, String query, String userName, Optional<String> prestoUser, Optional<String> prestoPassword, boolean storeFlag, int limit) throws  QueryErrorException;

	PrestoQueryResult doQueryAsync(String dataSource, String query, String userName, Optional<String> prestoUser, Optional<String> prestoPassword);

}
